/*
 * Copyright (C) GSX Techedu Inc. All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited
 * Proprietary and confidential
 */

package com.nime.novel.crawl.service;

import com.nime.novel.crawl.constant.StatusEnum;
import com.nime.novel.crawl.domain.CrawlUrl;

/**
 * @author liujialiang
 * @description
 * @team wuhan operational dev.
 * @date 2020/8/27 10:37 上午
 **/
public interface CrawlUrlService {

    CrawlUrl getOldCrawlUrlByStatus(Integer policyId, Integer channel, StatusEnum status);

    CrawlUrl getNewCrawlUrlByStatus(Integer policyId, Integer channel, StatusEnum status);

    CrawlUrl getByUrlHash(String hash);

    CrawlUrl getById(Long id);

    int create(CrawlUrl url);

    int updateStatus(Long id, Integer status);

    void updateRoute(Long id, String route);
}
